get Cost Basis Cap Gains For Date Range
Returns a list of CapitalGainResult class/calculations for all sell transactions for the given security within the date range. Works for both Average and LOT controlled securities. The asof date is assumed to be today/future. There will be one CapitalGainResult entry per sell txn. Added February 2024 by Stuart Beesley using the new CostCalculation class since MD2024(5100).
Return
A complete CapitalGainResult containing gains totals for all sell txns within the date range. Values will be in the parent investment account's currency.
Since
MD2024(5100)
Parameters
The security account.
The date range for gains
Returns a list of CapitalGainResult class/calculations for all sell transactions for the given security within the date range. Works for both Average and LOT controlled securities. Values will be calculated as of the given asOfDateInt. There will be one CapitalGainResult entry per sell txn. Added February 2024 by Stuart Beesley using the new CostCalculation class since MD2024(5100).
Return
A complete CapitalGainResult containing gains totals for all sell txns within the date range. Values will be in the parent investment account's currency.
Since
MD2024(5100)
Parameters
The security account.
The date range for gains
The asof date for the cost basis calculation